Return type | Name and parameters |
---|---|
Process
|
execute()
Executes the command specified by the given String array.
|
Process
|
execute(String[] envp, File dir)
Executes the command specified by the String array given in the first parameter,
with the environment defined by envp and under the working directory dir .
|
Process
|
execute(List envp, File dir)
Executes the command specified by the String array given in the first parameter,
with the environment defined by envp and under the working directory dir .
|
Executes the command specified by the given String
array.
The first item in the array is the command; the others are the parameters.
For more control over Process construction you can use
java.lang.ProcessBuilder
.
Executes the command specified by the String
array given in the first parameter,
with the environment defined by envp
and under the working directory dir
.
The first item in the array is the command; the others are the parameters.
For more control over Process construction you can use
java.lang.ProcessBuilder
.
envp
- an array of Strings, each member of which
has environment variable settings in the format
name=value, or
null if the subprocess should inherit
the environment of the current process.dir
- the working directory of the subprocess, or
null if the subprocess should inherit
the working directory of the current process.Executes the command specified by the String
array given in the first parameter,
with the environment defined by envp
and under the working directory dir
.
The first item in the array is the command; the others are the parameters.
For more control over Process construction you can use
java.lang.ProcessBuilder
.
envp
- a List of Objects (converted to Strings using toString), each member of which
has environment variable settings in the format
name=value, or
null if the subprocess should inherit
the environment of the current process.dir
- the working directory of the subprocess, or
null if the subprocess should inherit
the working directory of the current process.